//---------------------------------------------------------------------
// Author: Keith Hill
//
// Description: PSSnapIn implementation that provides basic snapin 
//              information to PowerShell.
//
// Creation Date: Jan 30, 2006
//---------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Management.Automation;

namespace Pscx.Install
{
    [RunInstaller(true)]
    public class SnapinInstaller : PSSnapIn
    {
        static readonly string[] FormatData = new string[]
        {
            "FormatData\\Pscx.ps1xml",
            "FormatData\\PingHost.ps1xml",
        };

        static readonly string[] TypeData = new string[]
        {
            "TypeData\\FeedStore.ps1xml",
            "TypeData\\FileSystem.ps1xml",
            "TypeData\\Reflection.ps1xml",
        };

        public override string Name
        {
            get { return "Pscx"; }
        }

        public override string Vendor
        {
            get { return Resources.Shared.SnapinVendor;  }
        }

        public override string Description
        {
            get { return Resources.Shared.SnapinDescription; }
        }

        public override string[] Formats
        {
            get { return FormatData; }
        }

        public override string[] Types
        {
            get { return TypeData; }
        }
    }
}
